﻿// ===============================================================================
// XCI.NET 西安交通信息WinForm开发框架 2018 版权所有
// ===============================================================================
namespace XCI.Logger
{
    /// <summary>
    /// 文件日志统计信息
    /// </summary>
    public class FileLoggerStat
    {
        /// <summary>
        /// 添加总数
        /// </summary>
        public long AddTotal { get; set; }

        /// <summary>
        /// 写入总数
        /// </summary>
        public long WriteTotal { get; set; }

        /// <summary>
        /// 写入次数
        /// </summary>
        public long WriteCount { get; set; }

        /// <summary>
        /// 当前缓存数量
        /// </summary>
        public int Cache { get; set; }

        /// <summary>返回表示当前对象的字符串。</summary>
        /// <returns>表示当前对象的字符串。</returns>
        public override string ToString()
        {
            return $"添加总数: {AddTotal}, 写入总数: {WriteTotal}, 写入次数: {WriteCount}, 当前缓存: {Cache}";
        }
    }
}